/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TEST;

import data.ManagerDatabase;
import data.Row;
import java.util.ArrayList;
import sqlcommand.MyError;

/**
 *
 * @author Quang
 */
public class testSelect {
    public static void main(String args[]){
        ManagerDatabase md = new ManagerDatabase("Test");
        
        Boolean loadAllTable = md.loadAllTable("F:\\Users\\Quang\\Desktop\\jSQL\\JSQLServer\\"
                                       + "JSQLServer\\database\\TESTDULIEU.JSQL");
        MyError err = new MyError();
        
        ArrayList<Row> listRow5 = md.sqlExcute("select maso from HOCSINH", err);
        if(listRow5 == null){
            System.out.println(err.getError());
        }
        for (int i = 0; i < listRow5.size(); i++) {
            Row r = listRow5.get(i);
            for (int j = 0; j < r.getListCell().size(); j++) {
                System.out.print(r.getListCell().get(j).getData());
            }
            System.out.println();
        }
    }
    
}
